<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>FB</title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAGVkkPzriDJzr0as5paOJcBQaIaxgZFO_HyGm4sK6rU1DjshnHBSp1ygVOYbczSJ_Y0rvCWOs75pXpQ"
      type="text/javascript"></script>
    <script src="UserDetails.js" type="text/javascript"></script>
    <script src="stalkbook.js" type="text/javascript"></script>
    <script src="stalkbooktest.js" type="text/javascript"></script>
    <script src="ajax.js" type="text/javascript"></script>
    <script src="stalklocationcreate.js" type="text/javascript"></script>
    <script src="stalkcoordinator.js" type="text/javascript"></script>
<style type="text/css">
#map {
	width: 500px; height: 500px
}
</style>
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>

<script type="text/javascript">
function doOnload() {
		stalkCoordinator = new StalkCoordinator();
		stalkCoordinator.load();
}
</script>

<script type="text/javascript">
var user = {
	username: "579343366",

	homeLocation: {x:-41.1212158203125, y:174.870529174805},

	locations: [
{coordinates: {x:-41.2592849731445, y:174.788848876953}, name: "CourierPost Depot", desc: "Packages go all the way out here if you're not at home."},
{coordinates: {x:-41.2610664367676, y:174.834884643555}, name: "<Secret>", desc: "My Nuclear Sub... shhh no one is meant to know about it"},
{coordinates: {x:-41.2783126831055, y:174.95361328125}, name: "ljjkasd", desc: "lasjdklasdkjklasd"},
{coordinates: {x:-41.2530632019043, y:174.865325927734}, name: "Arrrhhhh!", desc: "me pirates island"},
{coordinates: {x:-41.2397232055664, y:174.813659667969}, name: "Point 2", desc: "test point 2"},
{coordinates: {x:-41.2641868591309, y:174.773315429688}, name: "Tim's House", desc: "This is where Tim lives!"},
{coordinates: {x:-39.1659469604492, y:175.054641723633}, name: "qsdasdasdads", desc: "asddasdass"},
{coordinates: {x:-39.166130065918, y:175.058685302734}, name: "assdfsdf", desc: "sdffdsfdsfsddfs"},
{coordinates: {x:-40.6911163330078, y:175.947250366211}, name: "fsddfsdf", desc: "sdfdfsdfsdsf"},
{coordinates: {x:-41.2357368469238, y:174.821701049805}, name: "random", desc: "this is a test point"},
{coordinates: {x:-41.2568778991699, y:174.865478515625}, name: "Island", desc: "Its My Island"},
{coordinates: {x:-41.2271766662598, y:174.888885498047}, name: "Point", desc: "point desc"},
{coordinates: {x:-41.2811508178711, y:174.95426940918}, name: "adsasd", desc: "asdasd"},
{coordinates: {x:-41.2595901489258, y:174.865585327148}, name: "Mine!", desc: "ITS MINE"},
{coordinates: {x:-41.2935981750488, y:174.791107177734}, name: "stalking field", desc: "stlak here!"},

	]
};

</script>

</head>

<body onload="doOnload()" onunload="GUnload()">
    <div id="map"></div>
<div id="test">
<a href="#" onclick="gmapTest.testxy()">Click to call setPositionXY</a><br />
<a href="#" onclick="gmapTest.teststring()">Click to call setPositionString</a><br />
<a href="#" onclick="gmapTest.testaddtag()">Click to add tag</a><br />
<a href="#" onclick="gmapTest.testaddtag1()">Click to add tag 1</a><br />
<a href="#" onclick="gmapTest.teststringWithoutZoom()">Click to setPositionString at the same zoom level</a><br />
<a href="#" onclick="gmapTest.testaddtag2()">Click to add eat tag</a><br />
</div>


<div style="display: none;" id="blocker">
	<div id="addLocationContainer">	
		
	
		<h2>Add Location</h2>
		<div id="formWrap">
		<form action="" id="addLocationForm">
			<input id="creator" name="creator" type="hidden"/>
			<input id="pointLat" name="pointLat" type="hidden"/>
			<input id="pointLng" name="pointLng" type="hidden""/>
			
			<label for="name">Name</label><input type="text" name="name" id="name"/><br>
			<label for="description">Description</label><textarea rows="6" cols="40" name="description" id="description"></textarea><br>
			<label for="tags">Tags</label><input type="text" name="tags" id="tags"/><br>		
			
			<input class="buttons" type="button" onClick="StalkLocationCreate.createLocation(); return false" value="Save"/>
			<input class="buttons" type="button" onClick="hideForm()" value="Cancel"/>
	
		
		</form>	
		
		<br />
		<br />
		
		</div>
	</div>
	<div id="info">
	
	</div>
</div>

</body>
</html>
